
default_web_poptips = {
  show = function(param)
    base_utility.log("[default_web_poptips]show");
    local win_id = nil;
    param.ui_file = "web_only_wnd.tpf";
    param.url = poptips_model.poptips_default_url;
    param.width = 481;
    param.height = 234;
    param.show_from_web = true;
    param.js_call_lua = {
      jc_ok_clicked = function(data)
        base_utility.log("[default_web_poptips][show]jc_ok_clicked");
        poptips_view:on_ok_clicked(win_id, default_web_poptips.get_addon_info(data.addon_info));
      end;
      jc_cancel_clicked = function(data)
        base_utility.log("[default_web_poptips][show]jc_cancel_clicked");
        poptips_view:on_cancel_clicked(win_id, default_web_poptips.get_addon_info(data.addon_info));
      end;
      jc_extra_clicked = function(data)
        base_utility.log("[default_web_poptips][show]jc_extra_clicked");
        poptips_view:on_extra_clicked(win_id, default_web_poptips.get_addon_info(data.addon_info));
      end
    };

    win_id = poptips_control.show_local_web_wnd(param);
    return win_id;
  end;

  get_addon_info = function(addon_info)
    if nil == addon_info then
      addon_info = {};
    end

    if nil == addon_info.cbx_dont_ask_checked then
      addon_info.cbx_dont_ask_checked = false;
    end

    return addon_info;
  end;

}